package com.whiteape.book.utils.textview;

import android.graphics.Color;
import android.text.TextPaint;
import android.text.style.URLSpan;

import com.whiteape.book.utils.ScreenUtils;

public class CustomURLSpan extends URLSpan {
    public CustomURLSpan(String url) {
        super(url);
    }

    @Override
    public void updateDrawState(TextPaint ds) {
        super.updateDrawState(ds);
        ds.setUnderlineText(false);//无下划线
        ds.setColor(Color.parseColor("#198494"));//字体颜色
    }
}
